﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BomDetail.aspx.cs" Inherits="WMS6.Web.Configuration.BomDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>BomDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
      <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
           //弹出窗口选择货品
        function selectSkuID()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSkuID&ownerID='+escape(document.getElementById('txtOwnerID').value),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                if(document.getElementById('txtSkuID').value != rtnValue )
                {
                    document.getElementById("txtCompID").focus();
                    document.getElementById("txtCompID").value = rtnValue;
                    document.getElementById('lblMsg').innerText = "";
                }
                else
                {
                  document.getElementById('lblMsg').innerText = '<%=GetGlobalMsgResource("F2270_005") %>';
                }
            }
        }
    </script>
</head>
<body>
    <form id="F2123" runat="server">
    <div>
         <asp:ScriptManager ID="ScriptManager1" runat="server" />
         
         <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAreaDetail" runat="server" 
                            CssClass="label_header" Text="组装件明细" meta:resourcekey="lblAreaDetail"></asp:Label></td>
                    <td><asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" 
                            AccessKey="c" onclick="btnCancel_Click" 
                              /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s" onclick="btnSave_Click" 
                              /></td>
                </tr>
            </table>
        </div>
        
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="imgL1"></div>
            </div>
            <div class="tabLabelCont tabCur" id="div1">
                <asp:Label ID="one1" runat="server" class="hover" Text="组装件明细" 
                    meta:resourcekey="one1"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="imgR1"></div>
            </div>
        </div>
    
    
    <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                <tr style="height:10px;">
                         <td width="180">
                             <asp:Label ID="lblSeqNo" runat="server" CssClass="label" Text="序号" 
                                 meta:resourcekey="lblSeqNo"></asp:Label>
                         </td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtSeqNo" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtSeqNo"></asp:TextBox>
                         </td>
                         <td></td>
                         <td></td>
                     </tr>
                
                 <tr>
                         <td width="180">
                             <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" 
                                 meta:resourcekey="lblOwnerID"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtOwnerID"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" 
                                 meta:resourcekey="lblSkuID"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtSkuID"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr style="height:10px;">
                         <td width="180">
                             <asp:Label ID="lblCompID" runat="server" CssClass="label" Text="组件货品代码" 
                                 meta:resourcekey="lblCompID"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtCompID" runat="server" CssClass="textbox" MaxLength="30" 
                                 meta:resourcekey="txtCompID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuID();"/>
                         </td>
                         <td></td>
                         <td></td>
                     </tr>
                     <tr style="height:10px;">
                         <td width="180">
                             <asp:Label ID="lblQty" runat="server" CssClass="label" Text="数量" 
                                 meta:resourcekey="lblQty"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtQty" runat="server" CssClass="textbox" MaxLength="30" 
                                 onblur="Javascript:dataVer._Is123(this,'lblMsg');" 
                                 meta:resourcekey="txtQty" ></asp:TextBox>
                         </td>
                         <td></td>
                         <td></td>
                     </tr>
                     
                     <tr>
                         <td>
                             &nbsp;</td>
                         <td></td>
                         <td></td>
                     </tr>
                 </table>
             </div>
         </div>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />    
    <input type="hidden" id="hdnType" runat="server" />
    </form>
</body>
</html>
